package 面试真题;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @author 帅小伙
 * @date 2022/1/28
 * @description
 */
public class Demo04贝壳找房2022java秋招笔试题2第2题 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int k = scanner.nextInt();

        for (int i = 0; i < k; i++) {
            int n = scanner.nextInt();
            if(n%2==0){
                System.out.println(n/2);
            }else{
                System.out.println(n/2+1);
            }
        }

    }

}
